/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import model.fbUser;

/**
 * Web application lifecycle listener.
 * @author Yasith
 */
public class contextListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent arg0) {
        fbUser.setAdmin_password((String) arg0.getServletContext().getInitParameter("admin_password"));
        fbUser.setAdmin_username((String) arg0.getServletContext().getInitParameter("admin_username"));
    }

    public void contextDestroyed(ServletContextEvent arg0) {
    }
}